import service from './service'

export let instance = service

export const login = ({ loginUser, loginPassword }) => {
  return service.post('/api/login', {
    username: loginUser,
    password: loginPassword
  })
}

export const getUserInfo = () => {
  return service.get('/api/profile')
}
